;; lua language config

(require 'init-package)

(when (maybe-require-package 'lua-mode)
  (add-hook 'lua-mode-hook
            (lambda ()
              (corfu-mode)
              (eglot-ensure)
              (add-to-list 'eglot-server-programs
                           ('lua-mode . ("lua-language-server")))
              )))

(provide 'init-lua)
